export const difficultyTexts = {
    0: '未指定',
    1: '入门',
    2: '初阶',
    3: '中阶',
    4: '高阶',
    5: '极难'
}

export const categoryTexts = {
    0: '未指定',
    1: '类别1',
    2: '类别2',
    3: '类别3'
}

export function ntMap(texts:Record<number,string>, num?:number):string|undefined{
    if(num === undefined)
        return undefined;
    return texts[num];
}